home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / dev / c / bignum.readme < prev    next >
Encoding:
Text File  |  2000-07-01  |  2.3 KB  |  61 lines

  1. Short:    BigNum package (PPC+68k)
  2. Author:   unknown
  3. Uploader: info@ar-kleinert.de
  4. Type:     dev/c
  5.  
  6.  *************************************************************************
  7.  
  8.  Routines to do Big Number Arithmetic. These are multi-precision, unsigned
  9.  natural numbers (0, 1, 2, ...).
  10.  
  11.  Released to the public domain by Clifford Rhodes, June 15, 1995, with
  12.  no guarantees of any sort as to accuracy or fitness of use.
  13.  
  14.  Each int in the Big Number array will hold a digit up to MODULUS - 1.
  15.  Choosing 10000 makes testing easy because each digit contains 4 decimal
  16.  places.
  17.  
  18.  The Big Number is contained in a structure that has a length, nlen, and
  19.  an array, n[], of unsigned shorts to hold the 'digits'. The most
  20.  significant digit of the big number is at n[0]. The least significant
  21.  digit is at n[nlen - 1];
  22.  
  23.  *************************************************************************
  24.  
  25.  The Amiga 68k/PPC version comes with both, makefiles for 68k and PPC,
  26.  and test programs for both CPUs.
  27.  
  28.  Note, that the test program doesn't seem to do anything useful as
  29.  far as user interaction is concerned: it just tests its internal
  30.  routines and then waits for a key to be pressed.
  31.  
  32.  (Originally it would have run in an endless loop, but due to a missing
  33.   kbhit() function it's now just a single loop.)
  34.  
  35.  If someone has need for large unsigned numbers (or likes to extend
  36.  this to signed numbers) - well...
  37.  
  38.  --
  39.  ARK, 29/May/2000
  40.  
  41.  
  42. ============================= Archive contents =============================
  43.  
  44. Original  Packed Ratio    Date     Time    Name
  45. -------- ------- ----- --------- --------  -------------
  46.     1369     659 51.8% 29-May-00 18:49:54 +bignum.h
  47.     1414     748 47.1% 29-May-00 19:07:38 +bignum.readme
  48.     6056    1548 74.4% 29-May-00 18:49:52 +bignum1.c
  49.     6726    1769 73.6% 29-May-00 18:49:52 +bignum2.c
  50.    13156    8412 36.0% 29-May-00 18:59:58 +bigtest
  51.     4900    1541 68.5% 29-May-00 18:49:52 +bigtest.c
  52.    41796   19120 54.2% 29-May-00 18:58:40 +bigtest.elf
  53.      831     388 53.3% 29-May-00 18:59:58 +bigtest.info
  54.       47      47  0.0% 29-May-00 18:56:28 +conio.h
  55.       59      43 27.1% 29-May-00 18:52:54 +minmax.h
  56.      238     151 36.5% 29-May-00 18:51:42 +SCOPTIONS
  57.      323     134 58.5% 29-May-00 18:55:28 +smakefile
  58.      274     119 56.5% 29-May-00 18:58:22 +smakefile68k
  59. -------- ------- ----- --------- --------
  60.    77189   34679 55.0% 29-May-100 22:24:34   13 files
  61.